﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TopicView.aspx.cs" Inherits="TopicView" MasterPageFile="~/MasterPage.master" %>

<%@ OutputCache Duration="60" VaryByParam="*" %>
<asp:Content ID="main" ContentPlaceHolderID="main" runat="server">
    <div class="col-md-3 bs-docs-sidebar" id="ge_text">
        <div class="panel panel-primary ">
            <div class="panel-heading">
                <h3 class="panel-title">热门文集</h3>
            </div>
            <div class="panel-body">
                <ul>
                    <asp:Repeater ID="Repeater2" runat="server">
                        <ItemTemplate>
                            <li>
                                <a href="TopicView.aspx?ID=<%#Eval("ID") %>" title="<%#Eval("TopicTitle") %>"><%#Eval("TopicTitle") %></a>
                            </li>
                        </ItemTemplate>
                    </asp:Repeater>
                </ul>
            </div>
        </div>
    </div>
    <div class="col-md-9">
        <ol class="breadcrumb" style="margin: 0px;">
            <li><a href="Default.aspx">首页</a></li>
            <li><a href="middle.aspx?ID=<%=backClassUrl() %>"><%=GetClass() %></a></li>
            <li class="active"><%=getTitle() %></li>
        </ol>
        <div class="panel panel-default">
            <div class="panel-body">
                <asp:Repeater ID="Repeater1" runat="server">
                    <ItemTemplate>
                        <blockquote>
                            <h1 style="font-family: 'Microsoft YaHei'; text-align: center; margin: 30px;"><%#Eval("TopicTitle") %></h1>
                            <footer><span>发布时间：<%#Eval("TopicTime") %></span></footer>
                        </blockquote>

                        <p><%#Eval("TopicContent") %></p>
                    </ItemTemplate>
                </asp:Repeater>
            </div>
        </div>
    </div>
</asp:Content>
<asp:Content ID="js" ContentPlaceHolderID="footerJS" runat="server">
    <script type="text/javascript">
        $(document).ready(function () {
            $(".navbar-collapse").find("li").eq(<%=Convert.ToInt32(backClassUrl())+1 %>).addClass("active").siblings().removeClass("active");
        });
    </script>
</asp:Content>
